<h2>e-bind或e-b</h2>
<p>给元素的innerHTML绑定值。</p>
<p>模板</p>
<pre class="temp"></pre>
<p>代码</p>
<pre class="script"></pre>
<p>输出</p>
<div id="myDiv" ejs>
    <table>
        <tr>
            <th>编号</th>
            <th>姓名</th>
            <th>年龄</th>
        </tr>
        <tr e-for="i in data">
            <td e-bind="data[i].id"></td>
            <td e-bind="data[i].name"></td>
            <td e-b="data[i].age"></td>
        </tr>
    </table>
</div>
<br>
<br>
<script src="../js/jquery.min.js"></script>
<script src="../js/ejs.min.js"></script>
<script src="../js/jqejs.js"></script>
<script id="myJs">
$(function() {
    var data = [{
        "id": 1,
        "name": "liuzy",
        "age": 30
    }, {
        "id": 2,
        "name": "xiaohy",
        "age": 28
    }, {
        "id": 3,
        "name": "myao",
        "age": 2
    }];
    $('#myDiv').ejs({
        data: data
    });
});
</script>
